<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%@page import="java.util.*, model.*"%>
<%@ page import="javax.sql.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<table>
		<tr>
			<th>Reviewers</th>
			<th>Not Graded</th>
			<th>Graded</th>
		</tr>
		
		<ul>
			<%-- -------- Iteration Code -------- --%>
			<%
				// Get the studentsRowSet
				Vector<String>	reviewers = (Vector) session.getAttribute("reviewers");
				Vector<Integer>	reviewersId = (Vector) session.getAttribute("reviewersId");
				Vector<Integer>	graded = (Vector) session.getAttribute("graded");
				Vector<Integer>	notGraded = (Vector) session.getAttribute("notGraded");

			%>
			<tr>
				<td>
					<%for(int i = 0; i < reviewers.size(); i++){ %>	
					<li><%= reviewers.get(i) %> </li>
					<%} %>
				</td>
				<td>
					<%for(int i = 0; i < notGraded.size(); i++){ %>	
					<li><html:link action="/getApplications">
							<html:param name="reviewer" value="<%=reviewersId.get(i).toString()%>"/>
							<html:param name="graded" value="false"/>
							 <%=notGraded.get(i) %>
						</html:link></li>
					<%} %>
				</td>
				<td>
					<%for(int i = 0; i < graded.size(); i++){ %>	
					<li><html:link action="/getApplication">
							<html:param name="reviewer" value="<%=reviewersId.get(i).toString()%>"/>
							<html:param name="graded" value="true"/>
							 <%=graded.get(i) %>
						</html:link>
					
					</li>
					<%} %>
				</td>
			</tr>
		</ul>

	</table>

</body>
</html>